<?php
        include "include/top.php"
?>


<!--  <form method="post" action="news.php"> -->
<form method="post" action="welcome.php">   <!-- default: get; all post most be specified -->
<style>
 .regtable{width:600px;background:#fff;border-radius:5px;padding-top:30px;padding-bottom:100px}
 .regtable th{font-size:26px;color:#9c9c9c}  <!-- slightly darker than gray -->
 .regtable td{padding: 6px;}
 .regtable td a{color: green;}
 .regtable .lefttd{text-align: right;width:25%;color:gray}
 .regtable .righttd{text-align: left;width:75%}
 .regtable .text{width:58%;border: solid 1px #ddd;height:34px;line-height: 34px;background: #f5f5f5;border-radius:5px} 
<!-- #cmdLogin{width: 200px;height:40px;text-align:center;color:#fff;border:0;background: #e96481;border-radius: 5px;} -->
 #cmdLogin{width: 200px;height:40px;text-align:center;color:#fff;border:0;background: #e96481;border-radius: 5px;} 
</style>
<table class="mytable regtable">
    <tr>
      <th></th>
      <th class="righttd">OSPMS</th>

    </tr>
    <tr>
      <td class="lefttd">Username:</td>
      <td class="righttd"><input type="text" name="name" class="text"/></td>
    </tr>
    <tr>
      <td class="lefttd">Password:</td>
      <td class="righttd"><input type="password" name="password" class="text"/></td>
    </tr>
<!--    <tr>
      <td></td>
      <td class="righttd">
        <input type="checkbox" name="cbRead" /><a href="#">Please Read Instruction!</a>
      </td>
    </tr>  -->
    <tr>
      <td></td>
      <td class="righttd">
        <input type="submit" value="Login" name="submit" id="cmdLogin"/>
      </td>
    </tr>
</table>
</form>



<html>
<head>
  <link rel="STYLESHEET" type="text/css" href="../style/main.css" />

  <script language="javascript" type="text/javascript" src="../_js/validate_form.js"></script>

  <script language="Javascript">
    if (document.images)
    {
      actMessage = new Image
      actMessageHover = new Image
      actMessage.src = '../images/icon-message.png'
      actMessageHover.src = '../images/icon-message-hover.png'
    }

    function getFrameUrl(page, queryStr)
    {
      url = 'frame.php?<?php echo getSID() ?>';
      if (page !== undefined ) url += "&content=" + page;
      if (queryStr !== undefined) url += "&" + queryStr;
      return url;
    }

    function getPageDBUrl(page, queryStr)
    {
      url = 'pageDB.php?<?php echo getSID() ?>';
      if (page !== undefined ) url += "&content=" + page;
      if (queryStr !== undefined) url += "&" + queryStr;
      return url;
    }

    function validateForm(formobj, actionAppend)
    {
<?php if (isset($fieldsToCheck)): ?>
<?php foreach ($fieldsToCheck as $field => $fieldDesc): ?>
      if(emptyField(formobj.<?php echo $field ?>))
      {
        alert("Please enter <?php echo $fieldDesc ?>");
        formobj.<?php echo $field ?>.focus();
        return(false);
      }
<?php endforeach ?>
<?php endif ?>
      if (actionAppend != null)
      formobj.action += actionAppend;
      //alert(formobj.action);
      return true;
    }

    function adjustFrame()
    {
      // Caution, do not use style.height instead of offsetHeight.
      // style.height does not work.
      var height = defining.offsetHeight;
      var width = defining.offsetWidth + <?php echo isset($includeMenu) && $includeMenu? 238 : 60 ?> + 48;
      //alert("defining.offsetWdth '" + defining.offsetWidth + "'");
      //alert("new width: '" + width + "'");
      var effectiveWidth = Math.max(<?php echo $MIN_WIDTH ?>, width)
      var effectiveHeight = Math.max(<?php echo $MIN_HEIGHT ?>, height)
      //alert("width " + effectiveWidth + ", height " + height);
      shell.style.height = effectiveHeight;
      background_left.style.height = effectiveHeight;
      background_right.style.height = effectiveHeight;
      picture.style.width = effectiveWidth;
    }
  </script>
</head>

<body style="border: 0 solid yellow; margin: 0; background-color: black" onload="page_init()">
  <table id="picture" border="0" cellspacing="0" cellpadding="0" style="width: <?php echo $MIN_WIDTH ?>">
    <tr>
      <td style="border: 0px solid yellow">
        <!-- Top banner is a table of 3 elements: left, center (variable width), right -->
        <table cellspacing='0' cellpadding='0' border='0' width='100%'>
          <col width='677'>
          <col width='*'>
          <col width=51>
          <tr height='84'>
            <td style="background-image: url(../images/logo-banner-left.jpg); background-position: top left"></td>
            <td style="border: 0px solid red; background-image: url(../images/logo-banner-center.jpg)">
<?php if (isset($includeMenu) && $includeMenu): ?>
              <div style="float:right; margin-top: 30">
                <a href="<?php echo getFrameUrl('activation/messageactivation.tpl.php') ?>" onmouseover="document.butmessage.src=actMessageHover.src" onmouseout="document.butmessage.src=actMessage.src"><img src="../images/icon-message.png" width="48" height="51" alt="" border="0" name="butmessage"></a>
              </div>
<?php else: ?>
                &nbsp:
<?php endif; ?>
            </td>
            <td style="border: 0px solid green; background-image: url(../images/logo-banner-right.jpg)">&nbsp;
            </td>
          </tr>
        </table>
        </div>
      </td>
    </tr>
      
    <!-- title with optional buttons -->
    <tr>
      <td>
        <div style="border: 0px solid orange; margin: 0 auto; height: 71px">
          <!-- background graphics -->
          <table cellspacing='0' cellpadding='0' border='0' width='100%' style="position: absolute; z-index: 0">
            <col width='550'>
            <col width='*'>
            <col width='306'>
            <tr style="height: 71">
              <td style="background-image: url(../images/page-title-bar-left.jpg)"></td>
              <td style="background-image: url(../images/page-title-bar-center.jpg)">&nbsp;</td>
              <td style="background-image: url(../images/page-title-bar-right.jpg)"></td>
            </tr>
          </table>
          <!-- names and optional buttons -->
          <table cellspacing='0' cellpadding='0' border='0' width='100%' style="position: absolute; z-index: 1">
            <col width='240'>
            <col width='*'>
<?php if (isset($topButtons) && count($topButtons) > 0): ?>
            <col width='<?php echo count($topButtons)*$TOP_BUTTON_WIDTH + $TOP_BUTTON_RIGHT_MARGIN ?>'>
<?php endif; ?>
            <tr style="height: 50">
              <td style="border: 0px solid purple; vertical-align: text-bottom">
                <span style="border: 0px solid black; margin-left: 50px; font-size:30; color: white; font-family:myriad web pro, Arial, Helvetica, MS Sans Serif; font-weight: strong"><?php echo $myName ?></span>
              </td>
              <td style="border: 0px solid red; text-align: center; vertical-align: text-bottom">
                <span style="margin-left: 30; font-size: 24px; font-family:myriad web pro, Arial, Helvetica, MS Sans Serif; color: #0040CF; font-weight: strong"><?php if (isset($title)) echo $title ?></span>
              </td>
<?php if (isset($topButtons) && count($topButtons) > 0): ?>
              <td style="border: 0px solid orange">
<?php foreach ($topButtons as $button): ?>
                <span id="button" style="margin-top: 18">
                  <a href="<?php echo $button['href'] ?>"><?php echo $button['name'] ?></a>
                </span>
<?php endforeach; ?>
              </td>
<?php endif; ?>
            </tr>
          </table>

        </div>
      </td>
    </tr>
      
    <!-- rest of display  -->
    <tr>
      <td>
        <div id="shell" style="border: 0px solid yellow; margin: 0 auto; height: <?php echo $MIN_HEIGHT ?>px">
      
          <table cellspacing=0 cellpadding=0 width="100%" style="position: absolute; z-index: 0">
            <col width='<?php echo isset($includeMenu) && $includeMenu? 238 : 60 ?>'>
            <col width="*">
            <col width="48">
            <tr height="426">

              <td id="background_left" valign='top' style="border: 0px solid purple; background-image: url(../images/<?php if (!isset($includeMenu) || ! $includeMenu) echo 'thin-' ?>main-field-bg-left.jpg)">
                <?php if (isset($includeMenu) && $includeMenu) include_once 'left_menu.tpl.php' ?>
              </td>
              <td id='defining' valign='top' style="border: 0px solid green; background-color: white">
                <?php echo $contentHTML ?>
              </td>
              <td id="background_right" style="border: 0px solid yellow; background-position: 95%; background-image: url(../images/main-field-bg-right.jpg)"></td>
            </tr>
          </table>
        </div>
      </td>
    </tr>

    <!-- footer -->
    <tr>
      <td>
        <!-- Bottom banner is a table of 3 elements: left, center (variable width), right -->
        <table cellspacing='0' cellpadding='0' border='0' width='100%'>
          <col width='<?php echo (isset($includeMenu) && $includeMenu)? 242 : 66 ?>'>
          <col width='*'>
          <col width='60'>
          <tr height='94'>
            <td style="border: 0x solid white; background-image: url(../images/<?php if (!isset($includeMenu) || !$includeMenu) echo "thin-" ?>footer-left.jpg); background-position: top left"></td>
            <td style="border: 0px solid red; background-image: url(../images/footer-center.jpg)">&nbsp;</td>
            <td style="border: 0px solid white; background-image: url(../images/footer-right.jpg)"></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <div style="font-size:10px; color:cccccc; text-align:center">
          Link2Tek Version 0.0.1 (DB: v01.00.01.00) - Designed and Powered by Link2Tek
        </div>
      </td>
    </tr>
  </table>
<script>
  function page_init()
  {
    // This calls an optional page-specific init routine
    <?php if (isset($init)) echo "$init;" ?>
    adjustFrame();
  }
</script>
</body>




<?php
        include "include/bottom.php"
?>
